import * as Icons from '@ant-design/icons-vue';

const ICON_SUFFIX = 'Outlined';

export const antdIconComponent = (app) => {
  Object.keys(Icons)
    .filter((icon) => icon.endsWith(ICON_SUFFIX))
    .forEach((icon) => {
      app.component(icon, Icons[icon]);
    });
};
